<?php /* Smarty version Smarty3-RC3, created on 2013-10-11 09:46:45
         compiled from ".\templates\billBookList.tpl" */ ?>
<?php /*%%SmartyHeaderCode:242665257c90575f696-01284930%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b099dc216b0549eb7c71df6f0a1e6b9f841f6bc4' => 
    array (
      0 => '.\\templates\\billBookList.tpl',
      1 => 1381484803,
    ),
  ),
  'nocache_hash' => '242665257c90575f696-01284930',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_string_format')) include 'D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sil1\include\Smarty\libs\plugins\modifier.string_format.php';
?><?php if ($_GET['print']!=1){?>
  <?php $_template = new Smarty_Internal_Template("header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }else{ ?>
  <table width="100%">
    <td width="33.33%"><img src="./images/shreeSava.jpg" /></td>
    <td width="33.33%" align="center"><img src="./images/shreeGanesh.jpg" /></td>
    <td width="33.33%" align="right"><img src="./images/shreeGelMataji.jpg" /></td>
  </table>
<?php }?>
<head>
<script type="text/javascript">
function deletechecked()
    {
      var answer = confirm("Delete Selected Recored ?")
      var answer1 = confirm("Are You Sure ?")
      var answer2 = confirm("Final Delete Request...?")
      if (answer && answer1 && answer2)
      {
        document.messages.submit();
      }
      return false;
    }
 </script>
 </head>
<form name="form1" action="" method="post">
			<?php if ($_GET['print']!=1){?>
    	<div align="right"><a href="billBookList.php?print=1"><font size="4" color="red">Summary Print</font></a></div>
    <?php }else{ ?>
    &nbsp;
   <?php }?>	
<div>
  <table align="center" cellspacing="0" cellpadding="4" style="border:3px solid #000000; -moz-border-radius: 10px;">
    <?php if ($_GET['print']!=1){?>
    <tr class="table1">
      <th></th>
      <th></th>
      <th></th>
      <th>| <font size="3" color="red"><?php echo $_smarty_tpl->getVariable('l_billBookDetailId')->value;?>
</font> |</th>
      <th>| <font size="3" color="red"><?php echo $_smarty_tpl->getVariable('l_date')->value;?>
</font>| </th>
      <th>| <font size="3" color="red">Party</font>| </th>
      <th>| <font size="3" color="red">Total Fine</font>| </th>
      <th>| <font size="3" color="red">Total Amount</font>| </th>
      <th></th>
    </tr>
    <?php }else{ ?>
    <tr class="table1">
      <th></th>
      <th></th>
      <th></th>
      <th>| <font size="3" color="black"><?php echo $_smarty_tpl->getVariable('l_billBookDetailId')->value;?>
</font> |</th>
      <th>| <font size="3" color="black"><?php echo $_smarty_tpl->getVariable('l_date')->value;?>
</font>| </th>
      <th>| <font size="3" color="black">Party</font>| </th>
      <th>| <font size="3" color="black">Total Fine</font>| </th>
      <th>| <font size="3" color="black">Total Amount</font>| </th>
      <th></th>
    </tr>
    <?php }?>
    <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['name'] = "sec";
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'] = is_array($_loop=count($_smarty_tpl->getVariable('billbook')->value)) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total']);
?>
    <tr class="table2">
      <td>
        <?php if ($_GET['print']!=1){?>
          <a href="billbookAdd.php?billBookId=<?php echo $_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['billBookId'];?>
"><img src="./images/b_edit.png" border="0" width="15" height="15"></a>
        <?php }else{ ?>
          &nbsp;
        <?php }?>
      </td>
      <td>
        <?php if ($_GET['print']!=1){?>
          <a href="billBookDelete.php?billBookId=<?php echo $_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['billBookId'];?>
&partyId=<?php echo $_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyId'];?>
&billBookNo=<?php echo $_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['billNo'];?>
"><img src="./images/b_drop.png" border="0" width="15" height="15" onClick="return deletechecked();"></a>&nbsp;
        <?php }else{ ?>
          &nbsp;
        <?php }?>
      </td>
       <td>
        <?php if ($_GET['print']!=1){?>
          <?php if ($_GET['print']!=1){?><a style="color: #FF0000" href="./billBookDetailPdf.php?billBookId=<?php echo $_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['billBookId'];?>
&partyId=<?php echo $_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyId'];?>
&billBookNo=<?php echo $_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['billNo'];?>
&curDateYear=<?php echo $_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['curDateYear'];?>
&curDateMonth=<?php echo $_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['curDateMonth'];?>
&print=1">Print</a><?php }?>
        <?php }else{ ?>
          &nbsp;
        <?php }?>
      </td>
      <td align="center"><?php echo $_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['billNo'];?>
</td>
      <td align="center"><?php echo $_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['billBookDate'];?>
</td>
      <td align="center">
      <?php if ($_GET['print']!=1){?>
        <a style="color: #FF0000" href="./billBookDetail.php?billBookId=<?php echo $_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['billBookId'];?>
&partyId=<?php echo $_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyId'];?>
"><?php echo $_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyName'];?>
</a>
      <?php }else{ ?>  
        <a style="color: #000000" href="./billBookDetail.php?billBookId=<?php echo $_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['billBookId'];?>
&partyId=<?php echo $_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyId'];?>
"><?php echo $_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyName'];?>
</a>
      <?php }?>
      </td>
       <td align="center"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['totalFine'],"%.0f");?>
</td>
       <td align="center"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('billbook')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['totalAmount'],"%.0f");?>
</td>
    </tr>
    <?php endfor; endif; ?>
  </table>
</div>
</form>
<?php if ($_GET['print']!=1){?>
  <?php $_template = new Smarty_Internal_Template("footer.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }?>
